package com.amumu.drama.common.modules.category.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Auther: DM
 * @Date: 2024/6/11 11:33
 * @Description:游戏相关属性
 */
@Getter
@Setter
public class SkuStockDto implements Serializable {

    @ApiModelProperty(value = "商品库存ID")
    private Long skuStockId;

    @ApiModelProperty(value = "商品名称")
    @NotBlank(message = "商品名称不能为空")
    private String skuName;

    @ApiModelProperty(value = "游戏ID")
    @NotNull(message = "游戏不能为空")
    private Long productCategoryId;

    @ApiModelProperty(value = "库存")
    @NotNull(message = "库存不能为空")
    private Integer stock;

    @ApiModelProperty(value = "成本价")
    @NotNull(message = "商品成本价不能为空")
    private BigDecimal costPrice;

    @ApiModelProperty(value = "sku售价")
    @NotNull(message = "售价不能为空")
    private BigDecimal price;

    @ApiModelProperty(value = "充值类型（0-接口；1-人工）")
    private Integer rechargeType;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "展示图片")
    private String pic;

    @ApiModelProperty(value = "上架状态：0->下架；1->上架")
    private Integer publishStatus;

}
